(PHP 5 >= 5.1.2)
lchown — Changes user ownership of symlink
Attempts to change the owner of the symlink filename to user user .
Only the superuser may change the owner of a symlink.
Path to the file.
User name or number.
Devuelve TRUE si todo se llevó a cabo correctamente, FALSE en caso de fallo.
Example #1 Changing the owner of a symbolic link
<?php
$target = 'output.php';
$link = 'output.html';
symlink($target, $link);
lchown($link, 8);
?>
Note: Esta funcion no funcionara con ficheros remotos ya que el fichero a examinar tiene que estar disponible desde el sistema de ficheros del servidor.
Note: Cuando safe-mode (modo-seguro) está activado, PHP comprueba si los archivos o directorios que va a utilizar tienen la misma UID que el script que está siendo ejecutado.
Note: Esta función no está implementada en plataformas Windows.